var app = angular.module('myApp',[]);
app.controller('addController',['$scope','$http',function ($scope,$http) {

    $scope.add = function (user) {
        $scope.adduser = angular.copy(user);
        $http.post('/add',user).then(function (value) {
            alert(value);
        });
    }

}]);